<%--
  Created by IntelliJ IDEA.
  User: DV
  Date: 2018/12/19
  Time: 17:23
  To change this template use File | Settings | File Templates.
--%>
<%--
  Created by IntelliJ IDEA.
  User: Socrates
  Date: 2018/12/11
  Time: 16:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="model.Users" %>
<%@ page import="dao.UsersDao" %>
<html>
<head>
    <title>Title</title>

    <link rel="stylesheet" type="text/css" href="bootstrap/css/htmleaf-demo.css">
    <link rel="stylesheet" href="bootstrap/css/gallery-clean.css">
    <link rel="stylesheet" href="bootstrap/css/fluid-gallery.css">
    <link rel="stylesheet" href="bootstrap/css/gallery-grid.css">
    <link rel="stylesheet" href="bootstrap/css/css/baguetteBox.min.css">
    <link rel="stylesheet" href="bootstrap/css/thumbnail-gallery.css">

</head>
<body>
<jsp:include page="navBar.jsp"/>
<br><br>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column">
            <center>
                <h3>
                    旅游团报名
                </h3>
            </center>

        </div>
    </div>
    <div class="row clearfix">
        <div class="col-md-2 column">
        </div>
        <div class="col-md-8 column">
            <form class="form-horizontal" role="form" action="travellerTeamController" method="post">
                <div class="form-group">
                    <label for="inputEmail3" class="col-sm-2 control-label">姓名</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputEmail3" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-sm-2 control-label">性别</label>
                    <div class="col-sm-10">
                        <input type="text" class="form-control" id="inputPassword3" name="sex"/>

                    </div>
                </div>
                <div class="form-group">
                    <label  class="col-sm-2 control-label" >城市</label>
                    <div class="col-sm-10">
                        <%  String str;
                            if(request.getParameter("name")!=null){
                            str = request.getParameter("name");}
                            else {
                            str = (String) request.getAttribute("name");}
                        %>
                        <label name="location"><%=str%></label>

                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">报名</button>
                        <%if (request.getAttribute("error")!= null){%>
                        <strong>attention!  </strong><span class="tips-text"><%= request.getAttribute("error")%></span>
                        <%}%>
                    </div>
                </div>
            </form>
        </div>
        <div class="col-md-2 column">
        </div>
    </div>
</div>
</div>
<div class="related">
    <jsp:include page="footer.jsp"/>    </div>
</body>
</html>

